#ifndef _CDS_YHAY_H_
#define _CDS_YHAY_H_

#include "Equations/Momentum_YCoDi.hpp"

namespace Tuna {
  
  template <typename T, int Dim> class CDS_YHay;
  
  template <typename T>
  struct Typeinfo <CDS_YHay<T, 1> > {
    typedef T prec_t;
    enum { Dim = 1 };
  };
  
  template <typename T>
  struct Typeinfo <CDS_YHay<T, 2> > {
    typedef T prec_t;
    enum { Dim = 2 };
  };
  
  template <typename T>
  struct Typeinfo <CDS_YHay<T, 3> > {
    typedef T prec_t;
    enum { Dim = 3 };
  };

template<class Tprec, int Dim>
class CDS_YHay : public Momentum_YCoDi<CDS_YHay<Tprec, Dim> >
{
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aE;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aW;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aN;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aS;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aF;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aB;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::aP;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::sp;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::dx;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::dy;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::dz;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::bi;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::ei;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::bj;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::ej;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::bk;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::ek;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::dt;    
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::applyBoundaryConditions1D;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::applyBoundaryConditions2D;
  using GeneralEquation<Momentum_YCoDi<CDS_YHay<Tprec, Dim > > >::applyBoundaryConditions3D;
  
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::Gamma;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::Rayleigh;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::phi_0;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::T;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::u;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::v;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::w;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::p;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::dv;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::calc_dv_2D;
  using Momentum_YCoDi<CDS_YHay<Tprec, Dim > >::calc_dv_3D;

public:

  typedef Tprec prec_t;
  typedef typename TunaArray<prec_t, Dim >::huge ScalarField;

  CDS_YHay() : Momentum_YCoDi<CDS_YHay<prec_t, Dim> >() { };
  ~CDS_YHay() { }; 

  /*!
   * FVM coefficients calculations in 1D.
   */
  inline bool calcCoefficients1D() { }; 

  /*!
   * FVM coefficients calculations in 2D.
   */
  inline bool calcCoefficients2D();

  /*!
   * FVM coefficients calculations in 3D.
   */
  inline bool calcCoefficients3D();

  inline void printInfo() { std::cout << " CDS_YHay"; }
};

} // Tuna namespace

#include "../../src/Schemes/CDS_YHay.cpp"

#endif //_CDS_YHAY_H_

















